<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0 ;
            padding: 0;
        }
        .div1 {
            display: flex;
            width: 300px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 200px;
            border: 1px dashed #000;
        }

        .div2 {
            display: flex;
            width: 350px;
            height: 250px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: white;
            border: 1px solid #000;
        }

        .div3 {
            display: flex;
            width: 400px;
            height: 300px;
            justify-content: center;
            flex-direction: column;
            align-items: center;
            border: 1px solid #000;
            background: chartreuse;
        }

        .div4 {
            display: flex;
            width: 450px;
            height: 350px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border: 1px dashed #000;
        }
    </style>
</head>

<body>
    <div class="div4">Margin
        <div class="div3">Border
            <div class="div2">Padding
                <div class="div1">Content</div>
            </div>
        </div>
    </div>
</body>

</html>